<?php 

require_once("header.php");

    if( isset($_GET['type']) &&  $_GET['type'] == 'list' )
    {
        require_once('pages/list.php');
    } 
    else if ( isset($_GET['id']) && is_numeric($_GET['id']) ) 
    {
        require_once('pages/single.php');
    }
    else 
    {
        require_once('pages/index.php');
    }

require_once("footer.php");


